<template>
  <div class="container">
    <div class="center">
      <el-form label-position="left" label-width="80px">
        <el-form-item label="编号:" class="item">
          <el-input v-model="formData.id" disabled></el-input>
        </el-form-item>
        <el-form-item label="账号:" class="item">
          <el-input v-model="formData.account" disabled></el-input>
        </el-form-item>
        <el-form-item label="联系方式:" class="item">
          <el-input v-model="formData.password" disabled></el-input>
        </el-form-item>
        <el-form-item label="姓名:" class="item">
          <el-input v-model="formData.name" disabled></el-input>
        </el-form-item>
        <el-form-item label="注册时间:" class="item">
          <el-date-picker style="width: 100%"
            v-model="formData.createTime"
            type="datetime"
            placeholder="选择日期时间"
            disabled
          >
          </el-date-picker>
        </el-form-item>
        <el-form-item label="实名状态:" class="item">
          <el-switch
            v-model="isSwitch"
            disabled
            style="margin-left: 130px"
          ></el-switch>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>


<script>
import { userAxios } from "../../common/network/request";
export default {
  data() {
    return {
      isSwitch: true,
      formData: {},
    };
  },
  created() {
    userAxios({
      url: "/business/getBusinessUserInfoById",
      method: "get",
    }).then((res) => {
      this.formData = res;
    });
  },
  methods: {},
};
</script>


<style scoped>

.center {
  margin: auto;
  margin-top: 100px;
  width: 40%;
}

.item {
  width: 400px;
  margin-top: 30px;
}
</style>